package com.bank.backend.boot.server.service.impl;

import com.alibaba.fastjson2.JSON;
import com.bank.backend.boot.base.model.dto.IdentifyDTO;
import com.bank.backend.boot.base.model.vo.IdentifyVO;
import com.bank.backend.boot.server.kafka.ProducerKafka;
import com.bank.backend.boot.server.mapper.TradeMapper;
import com.bank.backend.boot.server.service.IdentifyService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author jiaowei
 * @since 2025/4/1 11:09
 */
@Service
public class IdentifyServiceImpl implements IdentifyService {

    @Resource
    private TradeMapper tradeMapper;

    @Resource
    private ProducerKafka producerKafka;

    @Override
    public IdentifyVO identify(IdentifyDTO identifyDTO) {
        producerKafka.send("bank-backend-identify", JSON.toJSONString(identifyDTO));
        return null;
    }
}
